from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait as wait
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains as action
import time, logging
def initDriver():
    driver = webdriver.Remote(
        command_executor="http://124.223.11.108:4444/wd/hub",
        desired_capabilities=DesiredCapabilities.CHROME
    )
    #driver.implicitly_wait(10)
    return driver
def close(driver):
    driver.close()
    driver.quit()
if __name__ == "__main__":
    driver = initDriver()
    try:
        driver.get("https://www.ray0728.cn")
        print(driver.title)
        #TODO: please edit your code here
    finally:
        close(driver)